@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion

goto :run

REM ===== 文档（不会执行） =====
:docs
REM upload_apk_remote_test.bat
REM 用途：提供 upload_apk_remote.bat 的示例调用
REM 说明：示例默认被注释。请根据自身环境修改路径参数后，去掉行首 REM 运行。

REM 示例1：从目录选择最新 APK 上传（含备注）
REM call "%~dp0upload_apk_remote.bat" RELEASE Chord_test_CRL_0.1.3_ C:\mateurp_pipline\mate-client-adnroid\app\build\outputs\apk\Release "修复崩溃"

REM 示例2：从指定 APK 文件上传（含备注）
REM call "%~dp0upload_apk_remote.bat" DEBUG Chord_dev_CRL_0.1.3_ C:\path\to\your.apk "测试包"

echo 示例已写入。请修改路径并取消注释对应示例后运行本脚本。
endlocal

goto :eof

REM ===== 实际运行区域 =====
:run
call "%~dp0upload_apk_remote.bat" Chord_test_CRL_0.0.0_ "C:\WareHouse\chordroguelike\Build\Android\RELEASE.apk" "微鲤流水线测试包" "https://appstore.wekoi.cn/#/appDetail/128 or https://ustatic.weli010.cn/app/Chord/"
exit /b 0
